﻿@using Lari.Configuration
<ul id="menu">
    @if (User.Identity.IsAuthenticated)
    {

        var handler = Url.RequestContext.RouteData.Values["controller"] as string;

        switch (handler)
        {

            case ControllerConst.Users:
                {

                    <li>@Html.ActionLink("Search", ActionConst.Users.Search, ControllerConst.Users)</li>
                    <li>@Html.ActionLink("Add Employee", ActionConst.Users.AddEmployee, ControllerConst.Users)</li>
                    <li>@Html.ActionLink("Roles", ActionConst.Users.RoleList, ControllerConst.Users)</li>
                   
        
                    break;
                }

            case ControllerConst.Masters.CoreMaster:
                { 
                    <li><a href="#">Common</a>
                        <ul>
                            <li>@Html.ActionLink("Bloodgroups", ActionConst.Masters.Common.Bloodgroups, ControllerConst.Masters.CoreMaster)</li>
                            <li>@Html.ActionLink("Countries", ActionConst.Masters.Common.Countries, ControllerConst.Masters.CoreMaster)</li>
                            <li>@Html.ActionLink("Departments", ActionConst.Masters.Common.Departments, ControllerConst.Masters.CoreMaster)</li>
                            <li>@Html.ActionLink("Designations", ActionConst.Masters.Common.Designations, ControllerConst.Masters.CoreMaster)</li>
                            <li>@Html.ActionLink("Employee Types", ActionConst.Masters.Common.EmploeeTypes, ControllerConst.Masters.CoreMaster)</li>
                            <li>@Html.ActionLink("Genders", ActionConst.Masters.Common.Genders, ControllerConst.Masters.CoreMaster)</li>
                            <li>@Html.ActionLink("Marital Status", ActionConst.Masters.Common.MaritalStatus, ControllerConst.Masters.CoreMaster)</li>
                            <li>@Html.ActionLink("Religions", ActionConst.Masters.Common.Religions, ControllerConst.Masters.CoreMaster)</li>
                            <li>@Html.ActionLink("States", ActionConst.Masters.Common.States, ControllerConst.Masters.CoreMaster)</li>
                            <li>@Html.ActionLink("Titles", ActionConst.Masters.Common.Titles, ControllerConst.Masters.CoreMaster)</li>
                        </ul>
                    </li>
                     <li><a href="#">HR</a>
                        <ul>
                            <li>@Html.ActionLink("Qualifications", ActionConst.Masters.Hr.Qualifications, ControllerConst.Masters.HRMaster)</li>
                            
                        </ul>
                    </li>
                
                
                    break;
                }
            case ControllerConst.Masters.HRMaster:
                { 
                    <li><a href="#">Common</a>
                        <ul>
                            <li>@Html.ActionLink("Bloodgroups", ActionConst.Masters.Common.Bloodgroups, ControllerConst.Masters.CoreMaster)</li>
                            <li>@Html.ActionLink("Countries", ActionConst.Masters.Common.Countries, ControllerConst.Masters.CoreMaster)</li>
                            <li>@Html.ActionLink("Departments", ActionConst.Masters.Common.Departments, ControllerConst.Masters.CoreMaster)</li>
                            <li>@Html.ActionLink("Designations", ActionConst.Masters.Common.Designations, ControllerConst.Masters.CoreMaster)</li>
                            <li>@Html.ActionLink("Employee Types", ActionConst.Masters.Common.EmploeeTypes, ControllerConst.Masters.CoreMaster)</li>
                            <li>@Html.ActionLink("Genders", ActionConst.Masters.Common.Genders, ControllerConst.Masters.CoreMaster)</li>
                            <li>@Html.ActionLink("Marital Status", ActionConst.Masters.Common.MaritalStatus, ControllerConst.Masters.CoreMaster)</li>
                            <li>@Html.ActionLink("Religions", ActionConst.Masters.Common.Religions, ControllerConst.Masters.CoreMaster)</li>
                            <li>@Html.ActionLink("States", ActionConst.Masters.Common.States, ControllerConst.Masters.CoreMaster)</li>
                            <li>@Html.ActionLink("Titles", ActionConst.Masters.Common.Titles, ControllerConst.Masters.CoreMaster)</li>
                        </ul>
                    </li>
                     <li><a href="#">HR</a>
                        <ul>
                            <li>@Html.ActionLink("Qualifications", ActionConst.Masters.Hr.Qualifications, ControllerConst.Masters.HRMaster)</li>
                            
                        </ul>
                    </li>
                
                
                    break;
                }
        }
    
    
@*  
                <li><a href="#">Help</a>
                    <ul id="help">
                        <li><a href="#">General help</a></li>
                        <li><a href="#">Posts</a></li>
                        <li><a href="#">Pages</a></li>
                    </ul>
                </li>
                *@
    }
    <li>@Html.Partial("_LogOnPartial")</li>
</ul>

